package getSum;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner reader=new Scanner(System.in);
        long floor=reader.nextLong();
        long ceiling=reader.nextLong();
        long sum_Even=GetSum.getEvenSum(floor, ceiling);
        long sum_Odd=GetSum.getOddSum(floor, ceiling);
        System.out.println(sum_Even+"\n"+sum_Odd);
    }
}
